-
Notifications
You must be signed in to change notification settings - Fork 915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #4421: Add -C DIR
flag
#4422
Conversation
480c74c
to
a8b2f6e
Compare
Hello @archie2x thanks for the PR. Just wondering if you could add a test of some kind, perhaps? |
Absolutely. A test didn't originally seem obvious to me but I think something as simple as |
Yes, please! |
a8b2f6e
to
54b09e2
Compare
Signed-off-by: Roger Standridge <[email protected]>
Signed-off-by: Roger Standridge <[email protected]>
4304400
to
d6cdc7a
Compare
Please let me know if the attached tests suffice for now. I wasn't familiar with the test framework here. I think there may be some opportunity to cleanup how temp directories are used? I'm getting quite a few in my /tmp when I try to run everything locally. |
…hanges directory) Signed-off-by: Roger Standridge <[email protected]>
d6cdc7a
to
9c88472
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. CI passes on Windows now.
feature: Fix tinygo-org#4421: Add `-C DIR` flag Signed-off-by: Roger Standridge <[email protected]>
See #4421
Implementation is copied from BigGo 1.22.5 with minor modification.
https://github.com/golang/go/blob/d79c350916c637de911d93af689a5e4e7ab5a5bb/src/cmd/go/main.go#L330